<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <link href="/js/ext/resources/css/ext-all.css" media="screen" rel="stylesheet" type="text/css"/>
    <link href="/css/main.css" media="screen" rel="stylesheet" type="text/css"/>
    <script src="/js/ext/ext-all-debug.js" type="text/javascript"></script>
    <script src="/jwawa/erp/framework/JwawaResourceManager.js" type="text/javascript"></script>
    <script src="/js/loader.js" type="text/javascript"></script>
    <script src="/js/common.js" type="text/javascript"></script>
    <script src="/jwawa/erp/framework/JwawaConnection.js" type="text/javascript"></script>
    <script src="/jwawa/erp/framework/JwawaSubmit.js" type="text/javascript"></script>
    <script src="/jwawa/erp/framework/JwawaProxy.js" type="text/javascript"></script>
    <script src="/jwawa/erp/framework/EnhanceFieldLabel.js" type="text/javascript"></script>
    <script src="/js/init.js" type="text/javascript"></script>
    <script src="/js/init_index.js" type="text/javascript"></script>
    <script src="/jwawa/erp/framework/ConditionFieldContainer.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript" charset="utf-8">
    Ext.onReady(function() {
        var m = Ext.create('jwawa.erp.cfg.entity.EntityDetailModel');
        var tmpEflMapping = m.getEntityMapByNames(['cfg_search_pages', 'bb']);
        var eflMapping = Ext.JwawaResMgr.get(EFL_MAPPING);
        Ext.apply(eflMapping, tmpEflMapping);

        var viewport = Ext.create('Ext.container.Viewport',
            {
                layout: {
                    align: 'middle',
                    pack: 'center',
                    type: 'vbox'
                },
                items: [
                    {
                        id: 'panel1',
                        xtype: 'form',
                        title: 'test',
                        layout: {type: 'vbox'},
                        fieldDefaults: {
                            entity: 'cfg_search_pages'
                        },
                        items: [
                            {
                                id: 'nameText',
                                xtype: 'textfield',
                                fieldLabel: 'name',
                                kbNav: true
                            },
                            {
                                id: 'createTime',
                                xtype: 'textfield',
                                fieldLabel: 'age',
                                name: 'create_time',
                                kbNav: true
                            }
                        ]
                    }
                ]
            }
        );

//        Ext.getCmp('createTime').setFieldLabel('test');
    });
</script>

</body>
</html>
